<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //0.Number.EPSION是JavaScript 表示的最小精度 属性值 为2.22044 × 10-16
        console.log(0.1+0.2 === 0.3)

        function equal(a,b){
            if(Math.abs(a-b) < Number.EPSILON){
                return true
            }else{
                return false
            }
        }
        console.log(equal(0.1+0.2,0.3))
        //1. 二进制和八进制
        let b = 0b1010
        let o = 0o7777
        let d = 123
        let x = 0xff
        //2.检测一个数值是否为有限数值
        console.log(Number.isFinite(100))
        console.log(Number.log(100/0))
        //3.检测一个数值是否为NaN
        console.log(Number.isNaN(13))
        //4.Number.parseInt  Number.parseFloat 字符串转整数
        console.log(Number.parseInt("123123helloa")) //=>会进行截取得到123123
        console.log(Number.parseFloat('3.2557448sfasdfa'))
        //5.Number.isInteger 判断一个数值是否为整数

        //6.Number.trunc()将小数部分抹掉


        //7.




















    </script>
    
</body>
</html>